import java.io.FileInputStream;
import java.io.IOException;

public class Exercises2 {
    public static void main(String[] args) {
        System.out.println(Exercises2.fileCompare(args[0], args[1]));
    }

    public static boolean fileCompare(String lFile, String rFile) {
        try {
            FileInputStream l = new FileInputStream(lFile);
            byte[] lb = l.readAllBytes();
            l.close();

            FileInputStream r = new FileInputStream(rFile);
            byte[] rb = r.readAllBytes();
            r.close();

            if (lb.length != rb.length)
                return false;
            else {
                for (int i = 0; i < rb.length; i++) {
                    if (lb[i] != rb[i])
                        return false;
                }
            }
        } catch (IOException ignored) {

        }

        return true;
    }
}
